﻿@inherits BaseComponent

<div style="margin:10px;">
    <DynamicComponent @ref="dc" Type="Menu.ComType" Parameters="Menu.ComParameters" />
</div>

@code {
    private DynamicComponent dc;

    [Parameter] public Known.MenuItem Menu { get; set; }

    public override void StateChanged()
    {
        (dc?.Instance as BaseComponent)?.StateChanged();
    }
}